package com.sdkx.app;

import android.content.Context;

import java.util.HashMap;

import com.sdkx.app.ViewModel.AlarmPointManager;
import com.sdkx.app.ViewModel.TrackPointManager;
import com.sdkx.app.entity.CustomAirPort;
import com.sdkx.app.entity.CustomWayPoint;

import org.litepal.LitePal;

public class MyApp extends cn.creable.gridgis.controls.App {
//    public static HashMap<Integer, CustomAirPort> idAirPortCaches;
//     public static HashMap<Integer, CustomWayPoint> idWayPointCaches;
    private static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        LitePal.initialize(this);
        context = getApplicationContext();
        AlarmPointManager.getInstance().listen();
        TrackPointManager.createIndex();
    }

    public static Context getContext(){
        return  context;
    }
}
